package com.qj.daibei.mapper;

import com.qj.daibei.pojo.ShouldPayBack;
import com.qj.daibei.pojo.ShouldPayBackCustom;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * author wml
 * Created on 2021/10/22 20:14
 */
@Mapper
public interface ShouldPayBackMapper {

    int insertShouldPayBackByBatch(List<ShouldPayBack> list);

    // 查询出没有逾期的待还款记录
    List<ShouldPayBackCustom> findShouldPayBackCustomByLoanId(List loanIdList);

    int updateShouldPayBackById(ShouldPayBack shouldPayBack);

    // 查询出逾期的待还款记录
    List<ShouldPayBackCustom> findShouldPayBackCustomByLoanIdAndOverdue(List loanIdList);
}
